home *** CD-ROM | disk | FTP | other *** search
/ Workbench Design / WB Collection.iso / datatypes / bmpdt / source / getbmp.h < prev    next >
C/C++ Source or Header  |  1996-04-07  |  1KB  |  53 lines

  1. /*
  2. ** includes + classbase definition for the bmp.datatype
  3. */
  4.  
  5. #if !defined(__GNUC__)
  6. #define REG(x)
  7. #else
  8. #define REG(x) asm(#x)
  9. #endif
  10.  
  11. #include <exec/memory.h>
  12. #include <dos/dos.h>
  13. #include <graphics/gfx.h>
  14. #include <datatypes/pictureclass.h>
  15.  
  16. struct ClassBase {
  17.   struct Library          cb_Library;
  18.   UWORD                   cb_Pad1;
  19.   BPTR                    cb_SegList;
  20.   struct ExecBase        *cb_SysBase;
  21.   struct DosLibrary      *cb_DOSBase;
  22.   struct IntuitionBase   *cb_IntuitionBase;
  23.   struct GfxBase         *cb_GfxBase;
  24.   struct UtilityBase     *cb_UtilityBase;
  25.   struct Library         *cb_DataTypesBase;
  26.   struct Library         *cb_SuperClassBase;
  27.   struct IClass          *cb_BMPClass;
  28.   struct SignalSemaphore  cb_Lock;
  29.   UWORD                   cb_Pad2;
  30. };
  31.  
  32. register struct ClassBase *cb REG(a4);
  33.  
  34. #define BASE_NAME cb->cb_DataTypesBase
  35. #include <proto/datatypes.h>
  36. #undef BASE_NAME
  37.  
  38. #define BASE_NAME cb->cb_GfxBase
  39. #include <proto/graphics.h>
  40. #undef BASE_NAME
  41.  
  42. #define BASE_NAME cb->cb_UtilityBase
  43. #include <proto/utility.h>
  44. #undef BASE_NAME
  45.  
  46. #define BASE_NAME cb->cb_SysBase
  47. #include <proto/exec.h>
  48. #undef BASE_NAME
  49.  
  50. #define BASE_NAME cb->cb_DOSBase
  51. #include <proto/dos.h>
  52. #undef BASE_NAME
  53.